#include<iostream>
using namespace std;
int main ()
{
    int n,suma;
    for(suma=0;n!=0;suma=suma+n)
    {
        cout<<"Ingrese numero"<<endl;
        cin>>n;
    }
    cout<<endl<<suma<<endl;
    return 1;
}
